import request from '@/util/request'

// 获取接口数据
var api = '/api'

//  登陆记录
export function login (data) {
  return request({
    url: api + '/login',
    method: 'get',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    params: data
  })
}

// 注册用户
export function register (query) {
  return request({
    url: api + '/register',
    method: 'get',
    params: query
  })
}
